﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200107B RID: 4219
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournStartScRsp : IMessage<RogueTournStartScRsp>, IMessage, IEquatable<RogueTournStartScRsp>, IDeepCloneable<RogueTournStartScRsp>, IBufferMessage
	{
		// Token: 0x17003532 RID: 13618
		// (get) Token: 0x0600BC56 RID: 48214 RVA: 0x001FB7EB File Offset: 0x001F99EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournStartScRsp> Parser
		{
			get
			{
				return RogueTournStartScRsp._parser;
			}
		}

		// Token: 0x17003533 RID: 13619
		// (get) Token: 0x0600BC57 RID: 48215 RVA: 0x001FB7F2 File Offset: 0x001F99F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournStartScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003534 RID: 13620
		// (get) Token: 0x0600BC58 RID: 48216 RVA: 0x001FB804 File Offset: 0x001F9A04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournStartScRsp.Descriptor;
			}
		}

		// Token: 0x0600BC59 RID: 48217 RVA: 0x001FB80B File Offset: 0x001F9A0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournStartScRsp()
		{
		}

		// Token: 0x0600BC5A RID: 48218 RVA: 0x001FB814 File Offset: 0x001F9A14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournStartScRsp(RogueTournStartScRsp other) : this()
		{
			this.rogueTournCurInfo_ = ((other.rogueTournCurInfo_ != null) ? other.rogueTournCurInfo_.Clone() : null);
			this.week_ = other.week_;
			this.rogueTournCurSceneInfo_ = ((other.rogueTournCurSceneInfo_ != null) ? other.rogueTournCurSceneInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BC5B RID: 48219 RVA: 0x001FB888 File Offset: 0x001F9A88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournStartScRsp Clone()
		{
			return new RogueTournStartScRsp(this);
		}

		// Token: 0x17003535 RID: 13621
		// (get) Token: 0x0600BC5C RID: 48220 RVA: 0x001FB890 File Offset: 0x001F9A90
		// (set) Token: 0x0600BC5D RID: 48221 RVA: 0x001FB898 File Offset: 0x001F9A98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournCurInfo RogueTournCurInfo
		{
			get
			{
				return this.rogueTournCurInfo_;
			}
			set
			{
				this.rogueTournCurInfo_ = value;
			}
		}

		// Token: 0x17003536 RID: 13622
		// (get) Token: 0x0600BC5E RID: 48222 RVA: 0x001FB8A1 File Offset: 0x001F9AA1
		// (set) Token: 0x0600BC5F RID: 48223 RVA: 0x001FB8A9 File Offset: 0x001F9AA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Week
		{
			get
			{
				return this.week_;
			}
			set
			{
				this.week_ = value;
			}
		}

		// Token: 0x17003537 RID: 13623
		// (get) Token: 0x0600BC60 RID: 48224 RVA: 0x001FB8B2 File Offset: 0x001F9AB2
		// (set) Token: 0x0600BC61 RID: 48225 RVA: 0x001FB8BA File Offset: 0x001F9ABA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournCurSceneInfo RogueTournCurSceneInfo
		{
			get
			{
				return this.rogueTournCurSceneInfo_;
			}
			set
			{
				this.rogueTournCurSceneInfo_ = value;
			}
		}

		// Token: 0x17003538 RID: 13624
		// (get) Token: 0x0600BC62 RID: 48226 RVA: 0x001FB8C3 File Offset: 0x001F9AC3
		// (set) Token: 0x0600BC63 RID: 48227 RVA: 0x001FB8CB File Offset: 0x001F9ACB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BC64 RID: 48228 RVA: 0x001FB8D4 File Offset: 0x001F9AD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournStartScRsp);
		}

		// Token: 0x0600BC65 RID: 48229 RVA: 0x001FB8E4 File Offset: 0x001F9AE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournStartScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RogueTournCurInfo, other.RogueTournCurInfo) && this.Week == other.Week && object.Equals(this.RogueTournCurSceneInfo, other.RogueTournCurSceneInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BC66 RID: 48230 RVA: 0x001FB958 File Offset: 0x001F9B58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueTournCurInfo_ != null)
			{
				num ^= this.RogueTournCurInfo.GetHashCode();
			}
			if (this.Week != 0U)
			{
				num ^= this.Week.GetHashCode();
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num ^= this.RogueTournCurSceneInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BC67 RID: 48231 RVA: 0x001FB9DC File Offset: 0x001F9BDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BC68 RID: 48232 RVA: 0x001FB9E4 File Offset: 0x001F9BE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BC69 RID: 48233 RVA: 0x001FB9F0 File Offset: 0x001F9BF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Week != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Week);
			}
			if (this.rogueTournCurInfo_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.RogueTournCurInfo);
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.RogueTournCurSceneInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BC6A RID: 48234 RVA: 0x001FBA84 File Offset: 0x001F9C84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueTournCurInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurInfo);
			}
			if (this.Week != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Week);
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurSceneInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BC6B RID: 48235 RVA: 0x001FBB0C File Offset: 0x001F9D0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournStartScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueTournCurInfo_ != null)
			{
				if (this.rogueTournCurInfo_ == null)
				{
					this.RogueTournCurInfo = new RogueTournCurInfo();
				}
				this.RogueTournCurInfo.MergeFrom(other.RogueTournCurInfo);
			}
			if (other.Week != 0U)
			{
				this.Week = other.Week;
			}
			if (other.rogueTournCurSceneInfo_ != null)
			{
				if (this.rogueTournCurSceneInfo_ == null)
				{
					this.RogueTournCurSceneInfo = new RogueTournCurSceneInfo();
				}
				this.RogueTournCurSceneInfo.MergeFrom(other.RogueTournCurSceneInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BC6C RID: 48236 RVA: 0x001FBBB4 File Offset: 0x001F9DB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BC6D RID: 48237 RVA: 0x001FBBC0 File Offset: 0x001F9DC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 24U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.Week = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 66U)
					{
						if (this.rogueTournCurInfo_ == null)
						{
							this.RogueTournCurInfo = new RogueTournCurInfo();
						}
						input.ReadMessage(this.RogueTournCurInfo);
						continue;
					}
					if (num == 122U)
					{
						if (this.rogueTournCurSceneInfo_ == null)
						{
							this.RogueTournCurSceneInfo = new RogueTournCurSceneInfo();
						}
						input.ReadMessage(this.RogueTournCurSceneInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004BD4 RID: 19412
		private static readonly MessageParser<RogueTournStartScRsp> _parser = new MessageParser<RogueTournStartScRsp>(() => new RogueTournStartScRsp());

		// Token: 0x04004BD5 RID: 19413
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004BD6 RID: 19414
		public const int RogueTournCurInfoFieldNumber = 8;

		// Token: 0x04004BD7 RID: 19415
		private RogueTournCurInfo rogueTournCurInfo_;

		// Token: 0x04004BD8 RID: 19416
		public const int WeekFieldNumber = 7;

		// Token: 0x04004BD9 RID: 19417
		private uint week_;

		// Token: 0x04004BDA RID: 19418
		public const int RogueTournCurSceneInfoFieldNumber = 15;

		// Token: 0x04004BDB RID: 19419
		private RogueTournCurSceneInfo rogueTournCurSceneInfo_;

		// Token: 0x04004BDC RID: 19420
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04004BDD RID: 19421
		private uint retcode_;
	}
}
